home *** CD-ROM | disk | FTP | other *** search
/ CD Fun House 1 / CD Fun House (Wayzata Technology).iso / •The Arcade• / Sword Play ••• / Sword Play еее / card_2350.txt < prev    next >
Text File  |  1990-10-02  |  15KB  |  714 lines

  1. -- card: 2350 from stack: in
  2. -- bmap block id: 9378
  3. -- flags: 4000
  4. -- background id: 2143
  5. -- name: Off/Def
  6. ----- HyperTalk script -----
  7. on idle
  8.   global StartTime
  9.   global SetPass
  10.   global MissedAttack
  11.  
  12.   if (the seconds >= 10 + StartTime) and (not SetPass) then
  13.     put true into MissedAttack
  14.     go card "Figure Attack"
  15.   end if
  16. end idle
  17.  
  18. on openCard
  19.   global StartTime
  20.   global GoneStatus
  21.  
  22.   if Not GoneStatus then
  23.     put the seconds into StartTime
  24.   end if
  25.   put false into GoneStatus
  26. end openCard
  27.  
  28.  
  29.  
  30. -- part 4 (button)
  31. -- low flags: 80
  32. -- high flags: 0006
  33. -- rect: left=60 top=39 right=137 bottom=90
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 1
  37. -- font id: 0
  38. -- text size: 12
  39. -- style flags: 0
  40. -- line height: 16
  41. -- part name: Left
  42. ----- HyperTalk script -----
  43. on mouseUp
  44.   global YourOff
  45.   put 1 into x
  46.   if YourOff <> x Then
  47.     set hilite of button YourOff to false
  48.     If YourOff = 2 then
  49.       hide button 11
  50.       hide button 14
  51.       hide button 17
  52.     else
  53.       hide button 11
  54.       hide button 12
  55.       hide button 14
  56.       hide button 15
  57.       hide button 17
  58.       hide button 18
  59.     end if
  60.     set hilite of button x to true
  61.     put x into YourOff
  62.   end if
  63. end mouseUp
  64.  
  65.  
  66.  
  67. -- part 7 (button)
  68. -- low flags: 00
  69. -- high flags: 0006
  70. -- rect: left=90 top=39 right=137 bottom=119
  71. -- title width / last selected line: 0
  72. -- icon id / first selected line: 0 / 0
  73. -- text alignment: 1
  74. -- font id: 0
  75. -- text size: 12
  76. -- style flags: 0
  77. -- line height: 16
  78. -- part name: Center
  79. ----- HyperTalk script -----
  80. on mouseUp
  81.   global YourOff
  82.   put 2 into x
  83.   if YourOff <> x then
  84.     set hilite of button YourOff to false
  85.     If YourOff = 1 then
  86.       show button 11
  87.       show button 14
  88.       show button 17
  89.     else
  90.       hide button 12
  91.       hide button 15
  92.       hide button 18
  93.     end if
  94.     set hilite of button x to true
  95.     put x into YourOff
  96.   end if
  97. end mouseUp
  98.  
  99.  
  100.  
  101. -- part 8 (button)
  102. -- low flags: 00
  103. -- high flags: 4006
  104. -- rect: left=119 top=39 right=137 bottom=150
  105. -- title width / last selected line: 0
  106. -- icon id / first selected line: 0 / 0
  107. -- text alignment: 1
  108. -- font id: 0
  109. -- text size: 12
  110. -- style flags: 0
  111. -- line height: 16
  112. -- part name: Right
  113. ----- HyperTalk script -----
  114. on mouseUp
  115.   global YourOff
  116.   put 3 into x
  117.   if YourOff <> x then
  118.     set hilite of button YourOff to false
  119.     If YourOff = 1 then
  120.       show button 11
  121.       show button 12
  122.       show button 14
  123.       show button 15
  124.       show button 17
  125.       show button 18
  126.     else
  127.       if YourOff = 2 then
  128.         show button 12
  129.         show button 15
  130.         show button 18
  131.       end if
  132.     end if
  133.     set hilite of button x to true
  134.     put x into YourOff
  135.   end if
  136. end mouseUp
  137.  
  138.  
  139.  
  140. -- part 12 (button)
  141. -- low flags: 00
  142. -- high flags: 0006
  143. -- rect: left=179 top=158 right=173 bottom=233
  144. -- title width / last selected line: 0
  145. -- icon id / first selected line: 0 / 0
  146. -- text alignment: 1
  147. -- font id: 0
  148. -- text size: 12
  149. -- style flags: 0
  150. -- line height: 16
  151. -- part name: High
  152. ----- HyperTalk script -----
  153. on mouseUp
  154.   global YourOff
  155.   put 4 into x
  156.   if YourOff <> x then
  157.     set hilite of button YourOff to false
  158.     If YourOff = 1 then
  159.       show button 11
  160.       show button 12
  161.       show button 14
  162.       show button 15
  163.       show button 17
  164.       show button 18
  165.     else
  166.       if YourOff = 2 then
  167.         show button 12
  168.         show button 15
  169.         show button 18
  170.       end if
  171.     end if
  172.     set hilite of button x to true
  173.     put x into YourOff
  174.   end if
  175. end mouseUp
  176.  
  177.  
  178.  
  179. -- part 13 (button)
  180. -- low flags: 00
  181. -- high flags: 0006
  182. -- rect: left=179 top=190 right=205 bottom=233
  183. -- title width / last selected line: 0
  184. -- icon id / first selected line: 0 / 0
  185. -- text alignment: 1
  186. -- font id: 0
  187. -- text size: 12
  188. -- style flags: 0
  189. -- line height: 16
  190. -- part name: Mid
  191. ----- HyperTalk script -----
  192. on mouseUp
  193.   global YourOff
  194.   put 5 into x
  195.   if YourOff <> x then
  196.     set hilite of button YourOff to false
  197.     If YourOff = 1 then
  198.       show button 11
  199.       show button 12
  200.       show button 14
  201.       show button 15
  202.       show button 17
  203.       show button 18
  204.     else
  205.       if YourOff = 2 then
  206.         show button 12
  207.         show button 15
  208.         show button 18
  209.       end if
  210.     end if
  211.     set hilite of button x to true
  212.     put x into YourOff
  213.   end if
  214. end mouseUp
  215.  
  216.  
  217.  
  218. -- part 14 (button)
  219. -- low flags: 00
  220. -- high flags: 0006
  221. -- rect: left=179 top=225 right=240 bottom=233
  222. -- title width / last selected line: 0
  223. -- icon id / first selected line: 0 / 0
  224. -- text alignment: 1
  225. -- font id: 0
  226. -- text size: 12
  227. -- style flags: 0
  228. -- line height: 16
  229. -- part name: Low
  230. ----- HyperTalk script -----
  231. on mouseUp
  232.   global YourOff
  233.   put 6 into x
  234.   if YourOff <> x then
  235.     set hilite of button YourOff to false
  236.     If YourOff = 1 then
  237.       show button 11
  238.       show button 12
  239.       show button 14
  240.       show button 15
  241.       show button 17
  242.       show button 18
  243.     else
  244.       if YourOff = 2 then
  245.         show button 12
  246.         show button 15
  247.         show button 18
  248.       end if
  249.     end if
  250.     set hilite of button x to true
  251.     put x into YourOff
  252.   end if
  253. end mouseUp
  254.  
  255.  
  256.  
  257. -- part 23 (button)
  258. -- low flags: 00
  259. -- high flags: 0000
  260. -- rect: left=230 top=282 right=328 bottom=284
  261. -- title width / last selected line: 0
  262. -- icon id / first selected line: 0 / 0
  263. -- text alignment: 1
  264. -- font id: 0
  265. -- text size: 12
  266. -- style flags: 0
  267. -- line height: 16
  268. -- part name: Help Index
  269. ----- HyperTalk script -----
  270. on mouseUp
  271.   push this card
  272.   visual effect iris open slowly
  273.   go to card "Sword Play Help Index"
  274. end mouseUp
  275.  
  276.  
  277.  
  278. -- part 24 (button)
  279. -- low flags: 00
  280. -- high flags: 0000
  281. -- rect: left=100 top=284 right=307 bottom=119
  282. -- title width / last selected line: 0
  283. -- icon id / first selected line: 0 / 0
  284. -- text alignment: 1
  285. -- font id: 0
  286. -- text size: 12
  287. -- style flags: 0
  288. -- line height: 16
  289. -- part name: Attack Help
  290. ----- HyperTalk script -----
  291. on mouseUp
  292.   push This Card
  293.   visual effect iris open slowly
  294.   go card "Offense Help Start"
  295. end mouseUp
  296.  
  297.  
  298.  
  299. -- part 27 (button)
  300. -- low flags: 00
  301. -- high flags: 0000
  302. -- rect: left=384 top=285 right=306 bottom=401
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 0 / 0
  305. -- text alignment: 1
  306. -- font id: 0
  307. -- text size: 12
  308. -- style flags: 0
  309. -- line height: 16
  310. -- part name: Defense Help
  311. ----- HyperTalk script -----
  312. on mouseUp
  313.   push This card
  314.   visual effect iris open slowly
  315.   go card "Defense Help Start"
  316. end mouseUp
  317.  
  318.  
  319.  
  320. -- part 34 (button)
  321. -- low flags: 00
  322. -- high flags: 0006
  323. -- rect: left=351 top=145 right=163 bottom=369
  324. -- title width / last selected line: 0
  325. -- icon id / first selected line: 0 / 0
  326. -- text alignment: 1
  327. -- font id: 0
  328. -- text size: 12
  329. -- style flags: 0
  330. -- line height: 16
  331. -- part name: Sheild High Left
  332. ----- HyperTalk script -----
  333. on mouseUp
  334.   global YourDef
  335.   put 1 into x
  336.   if YourDef <> x Then
  337.     put YourDef into it
  338.     add 9 to it
  339.     set hilite of button it to false
  340.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  341.       show button 1
  342.     else
  343.       if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  344.         show button 1
  345.         show button 2
  346.       end if
  347.     end if
  348.     put x into YourDef
  349.     add 9 to x
  350.     set hilite of button x to true
  351.   end if
  352. end mouseUp
  353.  
  354.  
  355.  
  356. -- part 36 (button)
  357. -- low flags: 00
  358. -- high flags: 0006
  359. -- rect: left=381 top=145 right=163 bottom=399
  360. -- title width / last selected line: 0
  361. -- icon id / first selected line: 0 / 0
  362. -- text alignment: 1
  363. -- font id: 0
  364. -- text size: 12
  365. -- style flags: 0
  366. -- line height: 16
  367. -- part name: Sheild High Center
  368. ----- HyperTalk script -----
  369. on mouseUp
  370.   global YourDef
  371.   put 2 into x
  372.   if YourDef <> x Then
  373.     put YourDef into it
  374.     add 9 to it
  375.     set hilite of button it to false
  376.     if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  377.       show button 2
  378.     else
  379.       hide button 1
  380.     end if
  381.     put x into YourDef
  382.     add 9 to x
  383.     set hilite of button x to true
  384.   end if
  385. end mouseUp
  386.  
  387.  
  388.  
  389. -- part 37 (button)
  390. -- low flags: 00
  391. -- high flags: 0006
  392. -- rect: left=411 top=145 right=163 bottom=429
  393. -- title width / last selected line: 0
  394. -- icon id / first selected line: 0 / 0
  395. -- text alignment: 1
  396. -- font id: 0
  397. -- text size: 12
  398. -- style flags: 0
  399. -- line height: 16
  400. -- part name: Sheild High Right
  401. ----- HyperTalk script -----
  402. on mouseUp
  403.   global YourDef
  404.   put 3 into x
  405.   if YourDef <> x Then
  406.     put YourDef into it
  407.     add 9 to it
  408.     set hilite of button it to false
  409.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  410.       hide button 2
  411.     else
  412.       hide button 1
  413.       hide button 2
  414.     end if
  415.     put x into YourDef
  416.     add 9 to x
  417.     set hilite of button x to true
  418.   end if
  419. end mouseUp
  420.  
  421.  
  422.  
  423. -- part 38 (button)
  424. -- low flags: 00
  425. -- high flags: 0006
  426. -- rect: left=351 top=177 right=195 bottom=369
  427. -- title width / last selected line: 0
  428. -- icon id / first selected line: 0 / 0
  429. -- text alignment: 1
  430. -- font id: 0
  431. -- text size: 12
  432. -- style flags: 0
  433. -- line height: 16
  434. -- part name: Sheild Mid Left
  435. ----- HyperTalk script -----
  436. on mouseUp
  437.   global YourDef
  438.   put 4 into x
  439.   if YourDef <> x Then
  440.     put YourDef into it
  441.     add 9 to it
  442.     set hilite of button it to false
  443.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  444.       show button 1
  445.     else
  446.       if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  447.         show button 1
  448.         show button 2
  449.       end if
  450.     end if
  451.     put x into YourDef
  452.     add 9 to x
  453.     set hilite of button x to true
  454.   end if
  455. end mouseUp
  456.  
  457.  
  458.  
  459. -- part 39 (button)
  460. -- low flags: 00
  461. -- high flags: 0006
  462. -- rect: left=381 top=177 right=195 bottom=399
  463. -- title width / last selected line: 0
  464. -- icon id / first selected line: 0 / 0
  465. -- text alignment: 1
  466. -- font id: 0
  467. -- text size: 12
  468. -- style flags: 0
  469. -- line height: 16
  470. -- part name: Sheild Mid Center
  471. ----- HyperTalk script -----
  472. on mouseUp
  473.   global YourDef
  474.   put 5 into x
  475.   if YourDef <> x Then
  476.     put YourDef into it
  477.     add 9 to it
  478.     set hilite of button it to false
  479.     if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  480.       show button 2
  481.     else
  482.       hide button 1
  483.     end if
  484.     put x into YourDef
  485.     add 9 to x
  486.     set hilite of button x to true
  487.   end if
  488. end mouseUp
  489.  
  490.  
  491.  
  492. -- part 40 (button)
  493. -- low flags: 00
  494. -- high flags: 0006
  495. -- rect: left=411 top=177 right=195 bottom=429
  496. -- title width / last selected line: 0
  497. -- icon id / first selected line: 0 / 0
  498. -- text alignment: 1
  499. -- font id: 0
  500. -- text size: 12
  501. -- style flags: 0
  502. -- line height: 16
  503. -- part name: Sheild Mid Right
  504. ----- HyperTalk script -----
  505. on mouseUp
  506.   global YourDef
  507.   put 6 into x
  508.   if YourDef <> x Then
  509.     put YourDef into it
  510.     add 9 to it
  511.     set hilite of button it to false
  512.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  513.       hide button 2
  514.     else
  515.       hide button 1
  516.       hide button 2
  517.     end if
  518.     put x into YourDef
  519.     add 9 to x
  520.     set hilite of button x to true
  521.   end if
  522. end mouseUp
  523.  
  524.  
  525.  
  526. -- part 42 (button)
  527. -- low flags: 00
  528. -- high flags: 0006
  529. -- rect: left=351 top=209 right=227 bottom=369
  530. -- title width / last selected line: 0
  531. -- icon id / first selected line: 0 / 0
  532. -- text alignment: 1
  533. -- font id: 0
  534. -- text size: 12
  535. -- style flags: 0
  536. -- line height: 16
  537. -- part name: Sheild Low Left
  538. ----- HyperTalk script -----
  539. on mouseUp
  540.   global YourDef
  541.   put 7 into x
  542.   if YourDef <> x Then
  543.     put YourDef into it
  544.     add 9 to it
  545.     set hilite of button it to false
  546.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  547.       show button 1
  548.     else
  549.       if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  550.         show button 1
  551.         show button 2
  552.       end if
  553.     end if
  554.     put x into YourDef
  555.     add 9 to x
  556.     set hilite of button x to true
  557.   end if
  558. end mouseUp
  559.  
  560.  
  561.  
  562. -- part 44 (button)
  563. -- low flags: 00
  564. -- high flags: 4006
  565. -- rect: left=381 top=209 right=227 bottom=399
  566. -- title width / last selected line: 0
  567. -- icon id / first selected line: 0 / 0
  568. -- text alignment: 1
  569. -- font id: 0
  570. -- text size: 12
  571. -- style flags: 0
  572. -- line height: 16
  573. -- part name: Sheild Low Center
  574. ----- HyperTalk script -----
  575. on mouseUp
  576.   global YourDef
  577.   put 8 into x
  578.   if YourDef <> x Then
  579.     put YourDef into it
  580.     add 9 to it
  581.     set hilite of button it to false
  582.     if (YourDef = 3) or (YourDef = 6) or (YourDef = 9) then
  583.       show button 2
  584.     else
  585.       hide button 1
  586.     end if
  587.     put x into YourDef
  588.     add 9 to x
  589.     set hilite of button x to true
  590.   end if
  591. end mouseUp
  592.  
  593.  
  594.  
  595. -- part 45 (button)
  596. -- low flags: 00
  597. -- high flags: 0006
  598. -- rect: left=411 top=209 right=227 bottom=429
  599. -- title width / last selected line: 0
  600. -- icon id / first selected line: 0 / 0
  601. -- text alignment: 1
  602. -- font id: 0
  603. -- text size: 12
  604. -- style flags: 0
  605. -- line height: 16
  606. -- part name: Sheild Low Right
  607. ----- HyperTalk script -----
  608. on mouseUp
  609.   global YourDef
  610.   put 9 into x
  611.   if YourDef <> x Then
  612.     put YourDef into it
  613.     add 9 to it
  614.     set hilite of button it to false
  615.     if (YourDef = 2) or (YourDef = 5) or (YourDef = 8) then
  616.       hide button 2
  617.     else
  618.       hide button 1
  619.       hide button 2
  620.     end if
  621.     put x into YourDef
  622.     add 9 to x
  623.     set hilite of button x to true
  624.   end if
  625. end mouseUp
  626.  
  627.  
  628.  
  629. -- part 46 (button)
  630. -- low flags: 00
  631. -- high flags: 0000
  632. -- rect: left=373 top=316 right=340 bottom=509
  633. -- title width / last selected line: 0
  634. -- icon id / first selected line: 0 / 0
  635. -- text alignment: 1
  636. -- font id: 0
  637. -- text size: 12
  638. -- style flags: 0
  639. -- line height: 16
  640. -- part name: 
  641. ----- HyperTalk script -----
  642. on mouseUp
  643.   global GoneStatus
  644.   put true into GoneStatus
  645.   go card "Player Status"
  646. end mouseUp
  647.  
  648.  
  649.  
  650. -- part 49 (button)
  651. -- low flags: 00
  652. -- high flags: 0000
  653. -- rect: left=3 top=289 right=301 bottom=17
  654. -- title width / last selected line: 0
  655. -- icon id / first selected line: 0 / 0
  656. -- text alignment: 1
  657. -- font id: 0
  658. -- text size: 12
  659. -- style flags: 0
  660. -- line height: 16
  661. -- part name: Password
  662. ----- HyperTalk script -----
  663. on mouseUp
  664.   global SetPass
  665.   ask password "Please enter password"
  666.   if it = 2170878455 then
  667.     put true into SetPass
  668.     show menubar
  669.     set userlevel to 5
  670.   else
  671.     put false into SetPass
  672.   end if
  673. end mouseUp
  674.  
  675.  
  676.  
  677. -- part 51 (button)
  678. -- low flags: 00
  679. -- high flags: 0000
  680. -- rect: left=201 top=36 right=141 bottom=318
  681. -- title width / last selected line: 0
  682. -- icon id / first selected line: 0 / 0
  683. -- text alignment: 1
  684. -- font id: 0
  685. -- text size: 12
  686. -- style flags: 0
  687. -- line height: 16
  688. -- part name: 
  689. ----- HyperTalk script -----
  690. on mouseUp
  691.   global MissedAttack
  692.   put false into MissedAttack
  693.   go card "Figure Attack"
  694. end mouseUp
  695.  
  696.  
  697. -- part 52 (button)
  698. -- low flags: 00
  699. -- high flags: 0000
  700. -- rect: left=360 top=3 right=22 bottom=505
  701. -- title width / last selected line: 0
  702. -- icon id / first selected line: 0 / 0
  703. -- text alignment: 1
  704. -- font id: 0
  705. -- text size: 12
  706. -- style flags: 0
  707. -- line height: 16
  708. -- part name: 
  709. ----- HyperTalk script -----
  710. on mouseUp
  711.   go to card "Sneak Out"
  712. end mouseUp
  713.  
  714.